package com.iris.live.services.common;/**
 * Created by Tony.Zhang on 2017/3/13.
 */

/**
 * @Description:
 * @author: Tony.Zhang
 * @Date: 2017-03-13 11:31
 **/
public class EnumConstant {
    public static enum CustomerSaleStatus{
        待甄别(1, "待甄别"),
        待邀约(2, "待邀约"),
        待分配(3, "待分配"),
        分配中(4, "分配中"),
        分配不成功(5, "分配不成功"),
        分配完成(6, "分配完成"),
        初次联系完成(7, "初次联系完成"),
        新车战败(8, "新车战败"),
        到店接待(9, "到店接待"),
        报价(10, "报价"),
        待跟进(11, "待跟进"),
        意向金(12, "意向金"),
        订金(13, "订金"),
        首付款到账(14, "首付款到账"),
        全款到账(15, "全款到账"),
        合同(16, "合同"),
        零售(17, "零售"),
        交车完毕(18, "交车完毕");

        public int key;
        public String value;

        private CustomerSaleStatus(int key, String value){
            this.key = key;
            this.value = value;
        }

        public static String getValue(int key){
            for(CustomerSaleStatus status : CustomerSaleStatus.values()){
                if(status.key == key){
                    return status.name();
                }
            }

            return "unknowKey";
        }
    }
}
